<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8" />
<title>Insert title here</title>
</head>
<body>

	<div class="content-wrapper" th:fragment="dictionaryClass">

		<h3>字典表管理</h3>

		<div class="row">
			<div class="col-lg-12">
				<div id="dictClassTable_search" class="panel panel-default">
					<div class="panel-heading">
						字典表查询
						<button type="button" id="searchBtn" class="mb-sm btn btn-default pull-right">查询</button>
					</div>
					<div class="panel-body">
						<div class="col-lg-2">
							<label class="control-label mb">字典编号 :</label> 
							<input id="searchDictclassCode" name="dictclassCode" class="form-control"  type="text"/>
						</div>

					</div>
				</div>
			</div>
		</div>

		<div class="row">
			<div class="col-lg-6">
				<div class="panel panel-default">
					<div class="panel-heading">字典表分类</div>
					<div class="col-xs-2  pull-left">
						<button class="btn btn-default fa fa-plus btn-sm " id="addBtnDictClass">添加分类</button>
					</div>
					<div class="panel-body">
						<table id="dictClassTable" class="table table-striped table-hover">
							<thead>
								<tr>
									<th></th>
									<th>分类编码</th>
									<th>分类名称 </th>
									<th>最后修改人</th>
									<th>最后修改时间</th>
									<th>操作</th>

								</tr>
							</thead>


						</table>
					</div>

				</div>
			</div>

			<div class="col-lg-6">
				<div class="panel panel-default">
					<div class="panel-heading" id="dictTableTitle">字典表值</div>
					<div class="col-xs-2  pull-left">
						<button class="btn btn-default fa fa-plus btn-sm " id="addBtnDict">添加字典</button>
					</div>
					<div class="panel-body">
						<table id="dictTable" class="table table-striped table-hover">
							<thead>
								<tr>
									<th></th>
									<th>显示名称</th>
									<th>记录值</th>
									<th>排序</th>
									<th>最后修改人</th>
									<th>最后修改时间</th>
									<th>操作</th>
								</tr>
							</thead>


						</table>
					</div>

				</div>
			</div>

		</div>






	</div>

	<div th:fragment="dictionaryClass_dialog">
		<div id="dictClassModel" tabindex="-1" role="dialog" aria-labelledby="myModalLabelLarge" aria-hidden="true"
			class="modal fade">
			<div class="modal-dialog ">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" data-dismiss="modal" aria-label="Close" class="close">
							<span aria-hidden="true">&times;</span>
						</button>
						<h4 id="dictClassModelTitle" class="modal-title">编辑字典分类</h4>
					</div>
					<div class="modal-body">
						<form id="dictClassForm">
							<div class="form-group">
								<label class="control-label">分类编码 *</label> <input type="text" id="dictclassCode" name="dictclassCode"
									required="" minlength="2" class="form-control" />
							</div>
							<div class="form-group">
								<label class="control-label">分类名称 *</label> <input type="text" name="dictclassName" id="dictclassName"
									required="" minlength="2" class="form-control" />
							</div>
							<input type="hidden" id="dclassId" name="dclassId" value="" /> <input type="hidden" id="oper" name="oper"
								value="" />

						</form>

					</div>
					<div class="modal-footer">
						<button type="button" data-dismiss="modal" class="btn btn-default">取消</button>
						<button type="button" id="submitBtn" class="btn btn-primary">保存</button>
					</div>
				</div>
			</div>
		</div>

		<div id="dictModel" tabindex="-1" role="dialog" aria-labelledby="" aria-hidden="true" class="modal fade">
			<div class="modal-dialog ">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" data-dismiss="modal" aria-label="Close" class="close">
							<span aria-hidden="true">&times;</span>
						</button>
						<h4 id="dictModelTitle" class="modal-title">编辑字典</h4>
					</div>
					<div class="modal-body">
						<form id="dictForm">
							<div class="form-group">
								<label class="control-label">显示名称 *</label> <input type="text" id="dictkeyName" name="dictkeyName" required=""
									minlength="1" class="form-control" />
							</div>
							<div class="form-group">
								<label class="control-label">记录值*</label> <input type="text" name="dictkeyValue" id="dictkeyValue" required=""
									minlength="1" class="form-control" />
							</div>
							<div class="form-group">
								<label class="control-label">排序 *</label> <input type="text" name="showOrder" id="showOrder" required=""
									minlength="1" digits="true" class="form-control" />
							</div>
							<input type="hidden" id="dictId" name="dictId" value="" />

						</form>

					</div>
					<div class="modal-footer">
						<button type="button" data-dismiss="modal" class="btn btn-default">取消</button>
						<button type="button" id="submitDictBtn" class="btn btn-primary">保存</button>
					</div>
				</div>
			</div>
		</div>

	</div>
	<div th:fragment="dictionaryClass_js">


		<script th:src="@{/business/dict/dictionary.js}"></script>
	</div>
</body>
</html>